import request from '@/utils/request'

// 查询仓库码头配置列表
export function ConfigList(query) {
  return request({
    url: '/system_setting/config/list',
    method: 'get',
    params: query
  })
}

// 查询仓库码头配置详细
export function getConfig(ConfigId) {
  return request({
    url: '/system_setting/config/' + ConfigId,
    method: 'get'
  })
}

// 新增仓库码头配置
export function addConfig(data) {
  return request({
    url: '/system_setting/config',
    method: 'post',
    data: data
  })
}

// 修改仓库码头配置
export function updateConfig(data) {
  return request({
    url: '/system_setting/config',
    method: 'put',
    data: data
  })
}

// 删除仓库码头配置
export function delConfig(ConfigIds) {
  return request({
    url: '/system_setting/config/' + ConfigIds,
    method: 'delete'
  })
}
